/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.PaymentsCutDao;
import com.click.app.model.Employee;
import com.click.app.model.PaymentsCut;
import com.click.app.service.PaymentsCutManager;
import java.util.Date;
import java.util.List;

/**
 *
 * @author ariel
 */
public class PaymentsCutManagerImpl extends GenericManagerImpl<PaymentsCut, Long> implements PaymentsCutManager {

    PaymentsCutDao paymentsCutDao;

    public PaymentsCutManagerImpl(PaymentsCutDao paymentsCutDao) {
        super(paymentsCutDao);
        this.paymentsCutDao = paymentsCutDao;
    }

    public List<PaymentsCut> findByDate(Date date) {
        return paymentsCutDao.findByDate(date);
    }

    public List<PaymentsCut> findByEmployeePeriod(Employee employee, Date initDate, Date endDate){
        return paymentsCutDao.findByEmployeePeriod(employee, initDate, endDate);
    }
}